const webpack = require('webpack');
module.exports = {
	runtimeCompiler: true,
	productionSourceMap: false,
	configureWebpack: {
		devtool: 'source-map',
		plugins: [
			new webpack.ProvidePlugin({
				'window.Quill': 'quill/dist/quill.js',
				'Quill': 'quill/dist/quill.js'
			})
		]
	},
	css: {
		loaderOptions: {
			sass: {
				additionalData: `@import "@/styles/theme.scss";`
			}
		}
	},
	devServer: {
		proxy: {
			'/ktsq/': {
				// target: 'http://192.168.1.109:8199/ktsq/',
				target: 'http://ktsqapi.iepose.cn/ktsq/',
				changeOrigin: true,
				pathRewrite: {
					'^/ktsq/': ''
				}
			}
		}
	}
}